// const { override, fixBabelImports, addDecoratorsLegacy, addLessLoader } = require("customize-cra");
// module.exports = override(
//     fixBabelImports("import", {//antd按需加载
//         libraryName: "antd",
//         libraryDirectory: "es",
//         style: "true"
//     }),
//     addLessLoader({
//         javascriptEnabled: true,
//         modifyVars: { "@primary-color": "red" }
//     }),
//     addDecoratorsLegacy()
// );

const { override, fixBabelImports, addLessLoader, addDecoratorsLegacy } = require("customize-cra");
module.exports = override(
    fixBabelImports("import", {
        // antd按需加载
        libraryName: "antd",
        libraryDirectory: "es",
        style: true
    }),
    addLessLoader({
        lessOptions: {
            javascriptEnabled: true,
            modifyVars: { '@primary-color': '#2700ff' }
        }
    }),
    addDecoratorsLegacy()

);